<?php echo $header; ?>
<!--<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <h1><?php echo $heading_title; ?></h1>
    </div>
  </div>
  <div class="middle">
    <div class="sort">
      <div class="div1">
        <select name="sort" onchange="location = this.value">
          <?php foreach ($sorts as $sorts) { ?>
          <?php if (($sort . '-' . $order) == $sorts['value']) { ?>
          <option value="<?php echo str_replace('&', '&amp;', $sorts['href']); ?>" selected="selected"><?php echo $sorts['text']; ?></option>
          <?php } else { ?>
          <option value="<?php echo str_replace('&', '&amp;', $sorts['href']); ?>"><?php echo $sorts['text']; ?></option>
          <?php } ?>
          <?php } ?>
        </select>
      </div>
      <div class="div2"><?php echo $text_sort; ?></div>
    </div>
    <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
        <td width="25%"><?php if (isset($products[$j])) { ?>
          <a href="<?php echo str_replace('&', '&amp;', $products[$j]['href']); ?>"><img src="<?php echo $products[$j]['thumb']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><br />
          <a href="<?php echo str_replace('&', '&amp;', $products[$j]['href']); ?>"><?php echo $products[$j]['name']; ?></a><br />
          <span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
          <?php if ($display_price) { ?>
          <?php if (!$products[$j]['special']) { ?>
          <span style="color: #900; font-weight: bold;"><?php echo $products[$j]['price']; ?></span>
          <?php } else { ?>
          <span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
          <?php } ?>
          <?php } ?>
          <a class="button_add_small" href="<?php echo $products[$j]['add']; ?>" title="<?php echo $button_add_to_cart; ?>" >&nbsp;</a>
          <br />
          <?php if ($products[$j]['rating']) { ?>
          <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
          <?php } ?>
          <?php } ?></td>
        <?php } ?>
      </tr>
      <?php } ?>
    </table>
    <div class="pagination"><?php echo $pagination; ?></div>
  </div>
  <div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
  </div>
</div>-->
      <div class="col1 float_left">
        <div class="col1_content p20r p15t brsolid">
<p class="tt1 whitetext"><?php echo $heading_title; ?></p>
<br/>
<?php 
	if ($products) 
	{ 
		$n=count($products);
		$i=0;
?>
	<?php foreach ($products as $product) 
	{ 
		if($i%4==0)
		{
			echo '<div class="w702 m15b">';
		}
		if(($i%4==3) || ($i==($n-1)))
		{

	?>
			<div class="w153 float_left"> <a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><img src="<?php echo $product['thumb']; ?>" /></a>
              <p class="p10t"><a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><?php echo $product['name']; ?></a></p>
              <p class="yellowtext">
			  Price: 
			  <?php 
			  if ($display_price) 
			  { 
			  	 if (!$product['special']) 
					{ 
				 		echo $product['price']; 
					} 
					else 
					{ 
					?>
          <span style="font-size: 11px; color: #900; text-decoration: line-through;"><?php echo $product['price']; ?></span> <span style="font-size: 11px; color: #F00;"><?php echo $product['special']; ?></span>
			  <?php 
			  	}
			  } 
			  ?>
			  </p>              
			  <?php if ($product['rating']) { ?>
			  <!--<img src="catalog/view/theme/default/image/stars_<?php echo $product['rating'] . '.png'; ?>" alt="<?php echo $product['stars']; ?>" /><br />-->
			  <?php } ?>
			  <!--<a href="<?php echo $product['add']; ?>" class="button_add_small"><img src="catalog/view/theme/w4u/img/but.png" class="p10t"/></a> -->
			</div>
	<?php		
		}
		else
		{
	?>
	 		<div class="w153 m30r float_left"><a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><img src="<?php echo $product['thumb']; ?>" /></a>
              <p class="p10t"><a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><?php echo $product['name']; ?></a></p>
              <p class="yellowtext">
			  Price: 
			  <?php 
			  if ($display_price) 
			  { 
			  	 if (!$product['special']) 
					{ 
				 		echo $product['price']; 
					} 
					else 
					{ 
					?>
          <span style="font-size: 11px; color: #900; text-decoration: line-through;"><?php echo $product['price']; ?></span> <span style="font-size: 11px; color: #F00;"><?php echo $product['special']; ?></span>
			  <?php 
			  	}
			  } 
			  ?>
			  </p>              
			  <?php if ($product['rating']) { ?>
			  <!--<img src="catalog/view/theme/default/image/stars_<?php echo $product['rating'] . '.png'; ?>" alt="<?php echo $product['stars']; ?>" /><br />-->
			  <?php } ?>
			  <!--<a href="<?php echo $product['add']; ?>" class="button_add_small"><img src="catalog/view/theme/w4u/img/but.png" class="p10t"/></a> -->
			  
			</div>
	<?php		
		}
		
		if(($i%4==3) || ($i==($n-1)))
		{
			echo '<br style="clear:both" /><div class="bbdot p15t"></div></div>';
		}
	?>
           
<?php 
	$i++;
	} 
?>

<?php } ?>	<div class="w702 m15b p10t">
	<?php echo $pagination; ?>
	<br style="clear:both">
	</div>	
        </div><br />	
      </div>
  
<?php echo $column_right; ?><?php echo $footer; ?> 